<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
table{
    font-family: Montserrat-Medium;
    border-collapse: collapse;
    width: 60%;
    font-size:20px;
}

td {
    color: #000;
    line-height: 1.4;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid black;
}


th {
    font-family: Montserrat-Medium;
    color: #fff;
    line-height: 1.4;
    background-color: #000;
    text-align: left;
    padding: 8px;
}



    </style>
</head>
<body>

<h2>{{info}}</h2>


<table>
    <tr>
        {% for head in head_list %}
        <th>{{head}}</th>
        {% endfor %}
    </tr>
    {% for data_set in data_list %}
    {% if data_set.bug_id == 'None' %}
    <tr bgcolor="#EEE685">
        <td>{{data_set.AppName}}</td>
        <td>{{data_set.recent_data}}</td>
        <td>{{data_set.bug_id}}</td>
    </tr>
    {% else %}
    <tr bgcolor="#EE6AA7">
        <td><b>{{data_set.AppName}}</b></td>
        <td><b>{{data_set.recent_data}}</b></td>
        <td><b><a href="http://172.16.1.230/bugzilla/show_bug.cgi?id={{data_set.bug_id}}">{{data_set.bug_id}}</a></b>
        </td>
    </tr>
    {% endif %}
    {% endfor %}

</table>
{% for plot_id in plot_list %}
<div>
    <a href="https://plot.ly/~CrystalChen/{{plot_id}}/?share_key=EOdkVkT4LaR5d46tpxHzlw" target="_blank"
       style="display: block; text-align: left;">
        <img src="https://plot.ly/~CrystalChen/{{plot_id}}.png?share_key=EOdkVkT4LaR5d46tpxHzlw"
             style="max-width: 100%;width: 800px;" width="600"
             onerror="this.onerror=null;this.src='https://plot.ly/404.png';"/>
    </a>
    <script data-plotly="CrystalChen:{{plot_id}}" sharekey-plotly="EOdkVkT4LaR5d46tpxHzlw"
            src="https://plot.ly/embed.js"
            async></script>
</div>
{% endfor %}
<h3>图表说明：</h3>
<p>1. 横坐标为版本号</p>
<p>2. 纵坐标为启动时间，单位为ms</p>
<p>3. 点击图片可以访问具体数据</p>
<p>4. demo_app launch time 为4个demo应用的启动时间</p>
<p>5. sys_app launch time 为系统应用的启动时间</p>

</body>
</html>

